package JavaSE.d5;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        System.out.println("请输入秒数");
        Scanner scanner = new Scanner(System.in);
        long l=scanner.nextLong();
        System.out.println(getsecond(l));
    }
    static String getsecond(long l){
        if(l<86400){
            long hour=l/(60*60);
            l=l%(60*60);

            long min=l/60;
            l=l%60;

            long sec=l;
            return hour+":"+min+":"+sec+"秒";
        }
       return "输入的秒数不能大于86400";
    }
}